package com.pay.domain.entity;

import com.pay.common.domain.entity.IdEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EntityListeners;

/**
 *
 * @author Evan
 * @date 2018/2/4
 */
@Entity
@EntityListeners(City.class)
public class City extends IdEntity {
    @Column(columnDefinition = "int(11) NOT NULL comment '城市代码' ")
    private Integer cityCode;

    @Column(columnDefinition = "int(11) NOT NULL comment '省级代码' ")
    private Integer provinceCode;

    @Column(columnDefinition = "varchar(255) NOT NULL comment '城市名称'")
    private String cityName;


    public Integer getCityCode() {
        return cityCode;
    }

    public void setCityCode(Integer cityCode) {
        this.cityCode = cityCode;
    }

    public Integer getProvinceCode() {
        return provinceCode;
    }

    public void setProvinceCode(Integer provinceCode) {
        this.provinceCode = provinceCode;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }
}
